package com.xdtech.hotel.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.hotel.model.ProtocolCmd;
import com.xdtech.hotel.protocol.vo.RCUDevice;
import com.xdtech.hotel.vo.ProtocolCmdItem;

/**
 * 
 * @author max.zheng
 * @create 2015-05-25 21:41:22
 * @since 1.0
 * @see
 */
public interface ProtocolCmdService extends IBaseService<ProtocolCmd>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-05-25 21:41:22
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateProtocolCmd(ProtocolCmdItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-05-25 21:41:22
	 * @modified by
	 * @param newId
	 * @return
	 */
	ProtocolCmdItem loadProtocolCmdItem(Long protocolCmdId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2015-05-25 21:41:22
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteProtocolCmdInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-05-25 21:41:22
	 * @modified by
	 * @param protocolCmdIds
	 */
	boolean deleteProtocolCmdInfo(List<Long> protocolCmdIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2015-05-25 21:41:22
	 * @modified by
	 * @return
	 */
	List<ProtocolCmdItem> loadItems();

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-5-25下午11:15:11
	 * @modified by
	 * @param device
	 * @param protocolCmdService
	 * @param valueOf
	 */
	void secondResultHandler(RCUDevice device,String rs, Long cmdId);
}
